package com.tansun.easycare.rule.scoremodel.service;

import java.util.List;

import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.rulemange.entity.RuleManage;
import com.tansun.easycare.rule.scoremodel.entity.RuleScore;
import com.tansun.easycare.rule.scoremodel.model.ScoreEntity;
import com.tansun.easycare.rule.scoremodel.model.ScoreItem;

public interface ScoreModelService extends RuleBaseService<RuleScore> {

    /**
     * 保存更新评分模型
     *
     * @param scoreEntity 评分模型信息（包含模型信息，规则信息）
     */
    void saveOrUpdate(ScoreEntity scoreEntity) throws Exception;
    /**
     * 显示java代码
     * @param tableEntity
     * @throws BizException
     */
    String showJavaCode(ScoreEntity scoreEntity) throws BizException;
    /**
     * 获取评分模型信息
     */
    List<ScoreItem> getScoreItems(String scoreId, String version) throws Exception;

    /**
     * 评分模型复制
     * @param manage 旧版ruleManang 
     * @param manage 新版newRule 已保存
     */
    void copyRule(RuleManage manage,RuleManage newRule) throws BizException;
}
